package com.gzxx.constant;

/**
 * @author MAX
 * @date 2020/7/23 2:42 下午
 * 系统常量配置
 */
public class SystemConstant {

    public static final int QUERY_PAGE_SIZE = 15;

    public static final int CAPTCHA_EXPIRATION = 2;

    public static final String ADMIN = "admin";
    public static final Long ADMIN_ID = 1L;

    /* 0 有效 1  无效 */
    public static final Integer EFFECTIVE = 0;
    public static final Integer NOEFFECTIVE = 1;

    /* 初始化密码 */
    public static final String INIT_USER_PASSWORD = "abc123456";

    /**
     * 菜单类型
     */
    public enum MenuType {
        /**
         * 目录
         */
        CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 部门级别
     */
    public enum DeptLevel {

        // 一级
        FIRST(1),
        // 二级
        SECOND(2);
        private Integer level;

        DeptLevel(Integer level) {
            this.level = level;
        }

        public Integer getLevel() {
            return level;
        }
    }
}
